<ui:composition template="/templates/layout.xhtml" xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns:x="http://java.sun.com/jstl/xml"
     xmlns:fn="http://java.sun.com/jstl/functions"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich"
     xmlns:gape="http://componentes.gape/component/gape">
     
	<ui:define name="titulo">
		<h:outputText value="#{msg.applicationName} - #{msg.tituloSWOT} - #{msg.tituloVisaoPerspectiva}" />
	</ui:define>

	<ui:define name="menu">
		<ui:include src="/menu/menuStrategicPlan.xhtml" />
	</ui:define>
	
	<ui:define name="conteudo">
		<h:panelGrid columns="1" columnClasses="label" headerClass="pathway" footerClass="FormLinhaBotoes">
			<f:facet name="header">
				<h:outputText value="#{msg.tituloSWOT} - #{msg.tituloVisaoPerspectiva}" />
			</f:facet>
			<rich:dataTable columnClasses="" value="#{swot.listAcronymPerspective}" var="perspective" rows="#{swot.listAcronymPerspectiveSize}">
				<f:facet name="header">
					<h:outputText value="#{msg.headerTablePerspectiveSWOT}" />
				</f:facet>
			
				<rich:column styleClass="rich-table-subheadercell">
					<h:outputText value="#{perspective.perspective}" />
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Strength" />
					</f:facet>
					
					<rich:dataList value="#{swot.mapaPerspectiva[perspective.acronym]['S']}" var="element">
						<h:outputText value="#{element.name}" />
					</rich:dataList>
				</rich:column>

				<rich:column>
					<f:facet name="header">
						<h:outputText value="Weakness" />
					</f:facet>
					
					<rich:dataList value="#{swot.mapaPerspectiva[perspective.acronym]['W']}" var="element">
						<h:outputText value="#{element.name}" />
					</rich:dataList>
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Opportunity" />
					</f:facet>
					
					<rich:dataList value="#{swot.mapaPerspectiva[perspective.acronym]['O']}" var="element">
						<h:outputText value="#{element.name}" />
					</rich:dataList>
				</rich:column>
				
				<rich:column>
					<f:facet name="header">
						<h:outputText value="Threat" />
					</f:facet>
					
					<rich:dataList value="#{swot.mapaPerspectiva[perspective.acronym]['T']}" var="element">
						<h:outputText value="#{element.name}" />
					</rich:dataList>
				</rich:column>
			</rich:dataTable>
		</h:panelGrid>
	</ui:define>

	<ui:define name="menuNavegacaoBack">
		<gape:navigationBack mbean="#{'swot'}" metodo="#{'backPerspective'}"/>
	</ui:define>
	
	<ui:define name="menuNavegacaoForward">
		<gape:navigationForward disabled="#{true}"/>
	</ui:define>

	<ui:define name="includePanels"></ui:define>
</ui:composition>